
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSON To Java</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<!-- Le styles -->
<link href="/assets/css/bootstrap.css" rel="stylesheet">
<style type="text/css">
body {
	padding-top: 40px;
	padding-bottom: 40px;
	background-color: #f5f5f5;
}

.form-horizontal {
	max-width: 700px;
	padding: 19px 29px 29px;
	margin: 0 auto 20px;
	background-color: #fff;
	border: 1px solid #e5e5e5;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.form-horizontal .form-horizontal-heading, .form-horizontal .checkbox {
	margin-bottom: 10px;
}

.form-horizontal input[type="text"], .form-horizontal input[type="password"]
	{
	font-size: 16px;
	height: auto;
	margin-bottom: 15px;
	padding: 7px 9px;
}
</style>



</head>

<body>

	<div class="container">

		<form class="form-horizontal" role="form" action="jsontojava">
			<a class="" href="https://github.com/jonfhancock/JsonToJava"><img
				style="position: absolute; top: 0; right: 0; border: 0;"
				src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png"
				alt="Fork me on GitHub"></a>
			<h2 class="form-horizontal-heading">JSON To Java</h2>
			<p>将网络上的JSON字符串转换为Java实体对象.</p>
			<p />
			<div class="form-group">
				<label for="inputUrl" class="col-lg-3 control-label">接口地址</label>
				<div class="col-lg-12">
					<input type="text" class="form-control" id="inputUrl" name="url"
						placeholder="http://example.com/folder.json">
				</div>
			</div>
			<div class="form-group">
				<label for="inputPackage" class="col-lg-3 control-label">包名</label>
				<div class="col-lg-9">
					<input type="text" class="form-control" id="inputPackage"
						name="package" placeholder="com.example.api.model">
				</div>
			</div>
			<div class="form-group">
				<label for="inputClass" class="col-lg-3 control-label">类名</label>
				<div class="col-lg-5">
					<input type="text" class="form-control" id="inputClass"
						name="class" placeholder="Folder">
				</div>
			</div>

			<div class="form-group">
				<div class="col-lg-offset-3 col-lg-9">
					<div class="checkbox">
						<label> <input type="checkbox" name="options"
							value="PARCELABLE"> Implement Parcelable
						</label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<div class="col-lg-offset-3 col-lg-9">
					<div class="checkbox">
						<label> <input type="checkbox" name="options" value="GSON">
							Include Gson Annotations
						</label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<div class="col-lg-offset-3 col-lg-9">
					<div class="checkbox">
						<label> <input type="checkbox" name="options"
							value="TO_STRING"> Override toString()
						</label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<div class="col-lg-offset-3 col-lg-9">
					<button type="submit" class="btn btn-large btn-primary">下载
						zip</button>
				</div>
			</div>
		</form>
	</div>
	<!-- /container -->

	<!-- Le javascript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="/assets/js/jquery.js"></script>
	<script src="/assets/js/bootstrap.min.js"></script>
	<script>
		$(document).ready(function() {
			$('#generate').submit(function() {
				return formValidated();
			});
		});
		function formValidated() {
			return $("input[name=url]").val().length > 0
					&& $("input[name=package]").val().length > 0
					&& $("input[name=class]").val().length > 0;
		}
	</script>
</body>
</html>
